package com.cmas.platform.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import com.aidex.common.core.domain.BasePlusEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 地区表对象 region
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-14
 */
@Data
public class Region extends BasePlusEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区名称 */
    @Excel(name = "地区名称")
    @NotBlank(message = "地区名称不允许为空")
    @Size(max = 32, message = "地区名称长度不能超过32个字符")
    @LogField
    @FieldRemark(name = "地区名称",field = "name")
    private String name;

    /** 地区编码 */
    @Excel(name = "地区编码")
    @NotBlank(message = "地区编码不允许为空")
    @Size(max = 32, message = "地区编码长度不能超过32个字符")
    @LogField
    @FieldRemark(name = "地区编码",field = "code")
    private String code;

    /** 地区头像 */
    @Excel(name = "地区头像")
    @LogField
    @FieldRemark(name = "地区头像",field = "avatar")
    private String avatar;

    /** 地区简称 */
    @Excel(name = "地区简称")
    @NotBlank(message = "地区简称不允许为空")
    @Size(max = 32, message = "地区简称长度不能超过32个字符")
    @LogField
    @FieldRemark(name = "地区简称",field = "abbreviation")
    private String abbreviation;

    /** 地区省份 */
    @Excel(name = "地区省份")
    @NotBlank(message = "地区省份不允许为空")
    @LogField
    @FieldRemark(name = "地区省份",field = "province")
    private String province;

    /** 运营者ID */
    @Excel(name = "运营者ID")
    @LogField
    @FieldRemark(name = "运营者ID",field = "userId")
    private String userId;

    /** 所属部门ID */
    @Excel(name = "所属部门ID")
    @LogField
    @FieldRemark(name = "所属部门ID",field = "departId")
    private String departId;

    /** 朋友圈二维码 */
    @LogField
    @FieldRemark(name = "朋友圈二维码",field = "momentImage")
    private String momentImage;

    /** 公众号二维码 */
    @LogField
    @FieldRemark(name = "公众号二维码",field = "officialAccountImage")
    private String officialAccountImage;

    /** 收款码 */
    @LogField
    @FieldRemark(name = "收款码",field = "receiveMoneyImage")
    private String receiveMoneyImage;

    /** 地区类型 */
    @LogField
    @FieldRemark(name = "地区类型",field = "type")
    private String type;

    /** 是否私有 */
    @LogField
    @FieldRemark(name = "是否私有",field = "isPrivate")
    private String isPrivate;

    /** 地区状态 */
    @LogField
    @FieldRemark(name = "地区状态",field = "status")
    @TableField(value = "status", fill = FieldFill.INSERT)
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("code", getCode())
            .append("avatar", getAvatar())
            .append("abbreviation", getAbbreviation())
            .append("province", getProvince())
            .append("userId", getUserId())
            .append("departId", getDepartId())
            .append("momentImage", getMomentImage())
            .append("officialAccountImage", getOfficialAccountImage())
            .append("receiveMoneyImage", getReceiveMoneyImage())
            .append("type", getType())
            .append("isPrivate", getIsPrivate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
